const main = require('../main/main');

describe('taxi fee', function () {
    // write your tests here...
    it("When the distance is 2",function(){
        let result=main(2,0);
        expect(result).toEqual(6);
    })
    it("when the distance is 6",function(){
        let result=main(6,0);
        expect(result).toEqual(9);
    })
    it("when the distance is 10 and the wait is 3",function(){
        let result=main(10,3);
        expect(result).toEqual(14);
    })
});
